/*
package com.fitns.user.mapper.baseConfig;

import static com.fitns.user.mapper.baseConfig.TbSysDictDynamicSqlSupport.*;
import static org.mybatis.dynamic.sql.SqlBuilder.*;

import com.fitns.user.model.baseConfig.TbSysDict;

import java.util.List;
import javax.annotation.Generated;

import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectKey;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;
import org.mybatis.dynamic.sql.SqlBuilder;
import org.mybatis.dynamic.sql.delete.DeleteDSL;
import org.mybatis.dynamic.sql.delete.MyBatis3DeleteModelAdapter;
import org.mybatis.dynamic.sql.delete.render.DeleteStatementProvider;
import org.mybatis.dynamic.sql.insert.render.InsertStatementProvider;
import org.mybatis.dynamic.sql.render.RenderingStrategy;
import org.mybatis.dynamic.sql.select.MyBatis3SelectModelAdapter;
import org.mybatis.dynamic.sql.select.QueryExpressionDSL;
import org.mybatis.dynamic.sql.select.SelectDSL;
import org.mybatis.dynamic.sql.select.render.SelectStatementProvider;
import org.mybatis.dynamic.sql.update.MyBatis3UpdateModelAdapter;
import org.mybatis.dynamic.sql.update.UpdateDSL;
import org.mybatis.dynamic.sql.update.render.UpdateStatementProvider;
import org.mybatis.dynamic.sql.util.SqlProviderAdapter;

@Mapper
public interface TbSysDictMapper {
    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    @SelectProvider(type=SqlProviderAdapter.class, method="select")
    long count(SelectStatementProvider selectStatement);

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    @DeleteProvider(type=SqlProviderAdapter.class, method="delete")
    int delete(DeleteStatementProvider deleteStatement);

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    @InsertProvider(type=SqlProviderAdapter.class, method="insert")
    @SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
    int insert(InsertStatementProvider<TbSysDict> insertStatement);

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    @SelectProvider(type=SqlProviderAdapter.class, method="select")
    @ResultMap("TbSysDictResult")
    TbSysDict selectOne(SelectStatementProvider selectStatement);

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    @SelectProvider(type=SqlProviderAdapter.class, method="select")
    @Results(id="TbSysDictResult", value = {
        @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="dict_code", property="dictCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="dict_name", property="dictName", jdbcType=JdbcType.VARCHAR),
        @Result(column="dict_value", property="dictValue", jdbcType=JdbcType.VARCHAR),
        @Result(column="orderlist", property="orderlist", jdbcType=JdbcType.INTEGER),
        @Result(column="parent_id", property="parentId", jdbcType=JdbcType.BIGINT),
        @Result(column="create_id", property="createId", jdbcType=JdbcType.BIGINT),
        @Result(column="input_time", property="inputTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="modify_id", property="modifyId", jdbcType=JdbcType.BIGINT),
        @Result(column="modify_time", property="modifyTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR)
    })
    List<TbSysDict> selectMany(SelectStatementProvider selectStatement);

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    @UpdateProvider(type=SqlProviderAdapter.class, method="update")
    int update(UpdateStatementProvider updateStatement);

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default QueryExpressionDSL<MyBatis3SelectModelAdapter<Long>> countByExample() {
        return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
                .from(tbSysDict);
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default DeleteDSL<MyBatis3DeleteModelAdapter<Integer>> deleteByExample() {
        return DeleteDSL.deleteFromWithMapper(this::delete, tbSysDict);
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default int deleteByPrimaryKey(Long id_) {
        return DeleteDSL.deleteFromWithMapper(this::delete, tbSysDict)
                .where(id, isEqualTo(id_))
                .build()
                .execute();
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default int insert(TbSysDict record) {
        return insert(SqlBuilder.insert(record)
                .into(tbSysDict)
                .map(dictCode).toProperty("dictCode")
                .map(dictName).toProperty("dictName")
                .map(dictValue).toProperty("dictValue")
                .map(orderlist).toProperty("orderlist")
                .map(cateId).toProperty("cateId")
                .map(createId).toProperty("createId")
                .map(inputTime).toProperty("inputTime")
                .map(modifyId).toProperty("modifyId")
                .map(modifyTime).toProperty("modifyTime")
                .map(remark).toProperty("remark")
                .build()
                .render(RenderingStrategy.MYBATIS3));
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default int insertSelective(TbSysDict record) {
        return insert(SqlBuilder.insert(record)
                .into(tbSysDict)
                .map(dictCode).toPropertyWhenPresent("dictCode", record::getDictCode)
                .map(dictName).toPropertyWhenPresent("dictName", record::getDictName)
                .map(dictValue).toPropertyWhenPresent("dictValue", record::getDictValue)
                .map(orderlist).toPropertyWhenPresent("orderlist", record::getOrderlist)
                .map(cateId).toPropertyWhenPresent("parentId", record::getParentId)
                .map(createId).toPropertyWhenPresent("createId", record::getCreateId)
                .map(inputTime).toPropertyWhenPresent("inputTime", record::getInputTime)
                .map(modifyId).toPropertyWhenPresent("modifyId", record::getModifyId)
                .map(modifyTime).toPropertyWhenPresent("modifyTime", record::getModifyTime)
                .map(remark).toPropertyWhenPresent("remark", record::getRemark)
                .build()
                .render(RenderingStrategy.MYBATIS3));
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default QueryExpressionDSL<MyBatis3SelectModelAdapter<List<TbSysDict>>> selectByExample() {
        return SelectDSL.selectWithMapper(this::selectMany, id, dictCode, dictName, dictValue, orderlist, cateId, createId, inputTime, modifyId, modifyTime, remark)
                .from(tbSysDict);
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default QueryExpressionDSL<MyBatis3SelectModelAdapter<List<TbSysDict>>> selectDistinctByExample() {
        return SelectDSL.selectDistinctWithMapper(this::selectMany, id, dictCode, dictName, dictValue, orderlist, cateId, createId, inputTime, modifyId, modifyTime, remark)
                .from(tbSysDict);
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default TbSysDict selectByPrimaryKey(Long id_) {
        return SelectDSL.selectWithMapper(this::selectOne, id, dictCode, dictName, dictValue, orderlist, cateId, createId, inputTime, modifyId, modifyTime, remark)
                .from(tbSysDict)
                .where(id, isEqualTo(id_))
                .build()
                .execute();
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExample(TbSysDict record) {
        return UpdateDSL.updateWithMapper(this::update, tbSysDict)
                .set(dictCode).equalTo(record::getDictCode)
                .set(dictName).equalTo(record::getDictName)
                .set(dictValue).equalTo(record::getDictValue)
                .set(orderlist).equalTo(record::getOrderlist)
                .set(parentId).equalTo(record::getParentId)
                .set(createId).equalTo(record::getCreateId)
                .set(inputTime).equalTo(record::getInputTime)
                .set(modifyId).equalTo(record::getModifyId)
                .set(modifyTime).equalTo(record::getModifyTime)
                .set(remark).equalTo(record::getRemark);
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExampleSelective(TbSysDict record) {
        return UpdateDSL.updateWithMapper(this::update, tbSysDict)
                .set(dictCode).equalToWhenPresent(record::getDictCode)
                .set(dictName).equalToWhenPresent(record::getDictName)
                .set(dictValue).equalToWhenPresent(record::getDictValue)
                .set(orderlist).equalToWhenPresent(record::getOrderlist)
                .set(parentId).equalToWhenPresent(record::getParentId)
                .set(createId).equalToWhenPresent(record::getCreateId)
                .set(inputTime).equalToWhenPresent(record::getInputTime)
                .set(modifyId).equalToWhenPresent(record::getModifyId)
                .set(modifyTime).equalToWhenPresent(record::getModifyTime)
                .set(remark).equalToWhenPresent(record::getRemark);
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default int updateByPrimaryKey(TbSysDict record) {
        return UpdateDSL.updateWithMapper(this::update, tbSysDict)
                .set(dictCode).equalTo(record::getDictCode)
                .set(dictName).equalTo(record::getDictName)
                .set(dictValue).equalTo(record::getDictValue)
                .set(orderlist).equalTo(record::getOrderlist)
                .set(parentId).equalTo(record::getParentId)
                .set(createId).equalTo(record::getCreateId)
                .set(inputTime).equalTo(record::getInputTime)
                .set(modifyId).equalTo(record::getModifyId)
                .set(modifyTime).equalTo(record::getModifyTime)
                .set(remark).equalTo(record::getRemark)
                .where(id, isEqualTo(record::getId))
                .build()
                .execute();
    }

    @Generated("org.mybatis.generator.api.MyBatisGenerator")
    default int updateByPrimaryKeySelective(TbSysDict record) {
        return UpdateDSL.updateWithMapper(this::update, tbSysDict)
                .set(dictCode).equalToWhenPresent(record::getDictCode)
                .set(dictName).equalToWhenPresent(record::getDictName)
                .set(dictValue).equalToWhenPresent(record::getDictValue)
                .set(orderlist).equalToWhenPresent(record::getOrderlist)
                .set(parentId).equalToWhenPresent(record::getParentId)
                .set(createId).equalToWhenPresent(record::getCreateId)
                .set(inputTime).equalToWhenPresent(record::getInputTime)
                .set(modifyId).equalToWhenPresent(record::getModifyId)
                .set(modifyTime).equalToWhenPresent(record::getModifyTime)
                .set(remark).equalToWhenPresent(record::getRemark)
                .where(id, isEqualTo(record::getId))
                .build()
                .execute();
    }
}*/
